import { defineStore } from 'pinia'
export const useCommonStore = defineStore('commonStore', {
  state: () => ({
    isOpenContextmenu: false,
    contextmenus: []
  }),
  actions: {
    setContextmenus(isOpen, menus) {
      this.isOpenContextmenu = isOpen
      this.contextmenus = menus
    }
  }
})
